<?php if (!defined('insite')) die("no access"); 
	require "opt.php";

	$gettime = time();
	$ntime = @filemtime("_dat/cach/".$_SESSION["lang"]."_ban"); 
	if(!$ntime or time() - $ntime >$config["bantime"])
	{
	ob_start();
	$content = new content();
	$content->set('|ban_table_title|', ban_table_title);
	$content->set('|ban_table_chr_name|', ban_table_chr_name);	
	$content->set('|ban_table_des|', ban_table_des);	
	$content->set('|ban_table_bdate|', ban_table_bdate);
	$content->out_content("theme/".$config["theme"]."/them/banlist_h.them");	

	$db = new Connect ($config["ctype"], $config["db_host"], $config["db_name"], $config["db_user"], $config["db_upwd"],$config["odbc_driver"],$config["debug"]); 
	$query_s = $db->query("SELECT memb___id,bloc_code,ban_time,ban_des FROM memb_info where ban_des!='0'");
	while ($show_ar = $db->fetcharray($query_s) )
	{
	if ($show_ar["bloc_code"]==0) 
		{
			$b_chr = $db->fetchrow($db->query("SELECT Name FROM Character WHERE CtlCode = 1 and AccountID='".$show_ar["memb___id"]."'"));
			$show_ar["memb___id"] = $b_chr[0];
		}else $show_ar["memb___id"]=hide_acc($show_ar["memb___id"]);
		if ($show_ar["ban_time"]==0) $show_ar["ban_time"]="never";
		$content->set('|who|', $show_ar["memb___id"]);
		$content->set('|des|', $show_ar["ban_des"]);	
		$content->set('|date|', @date('G:i j-m-Y',$show_ar["ban_time"]));
		$content->out_content("theme/".$config["theme"]."/them/banlist_c.them");
	}
	$content->out_content("theme/".$config["theme"]."/them/banlist_f.them");

	$bufer = ob_get_contents();
	write_catch("_dat/cach/".$_SESSION["lang"]."_ban",$bufer);ob_end_clean(); echo $bufer;}else require "_dat/cach/".$_SESSION["lang"]."_ban";